package com.itcast.activiti.domain;

import com.alibaba.fastjson.JSONArray;
import com.itcast.activiti.entity.ApproveDefinition;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 保存审批定义
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ApproveDefinitionSave implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 基础信息
     */
    @NotNull
    private ApproveDefinition baseData;

    /**
     * 谁可以发起这个审批json
     */
    private List<AllowUserObj> userRange;

    /**
     * 流程定义信息
     */
    @NotNull
    private JSONArray flowData;
    /**
     * 原始流程信息
     */
    @NotNull
    private String flowDataJson;
}
